<!DOCTYPE html><%@ page pageEncoding="UTF-8"%><%@ include file="/include/commons.jsp"%>
<html>
	<head>
	<head>
		<meta charset="UTF-8">
		<title>${entity?lower_case} list page</title>
		<link rel="stylesheet" href="${'$'}{ctx }/css/style.css">
		<script src="${'$'}{ctx }/js/jquery-1.10.0.min.js"></script>
		<script src="${'$'}{ctx }/js/table.js"></script>
		<script src="${'$'}{ctx }/js/delete.js"></script>
	</head>
	<body>
		<h1>${entity} List Page</h1>
		<hr>
		<table>
			<tr>
				<th>INDEX</th>
				<#assign keys = properties?keys> 
				<#list keys as key>
				<th>${key?upper_case}</th>
				</#list> 
				<th colspan="2">OPERATIONS</th>
			</tr>
			<c:forEach var="${entity?lower_case}" items="${'$'}{sessionScope.list }" varStatus="vs">
			<tr>
				<td>${'$'}{vs.count }</td>
				<#assign keys = properties?keys> 
				<#list keys as key>
				<td>${'$'}{${entity?lower_case}.${key?uncap_first} }</td>
				</#list> 
				<td><a href="${'$'}{ctx }/${entity?lower_case}_search?${entity?lower_case}.id=${'$'}{${entity?lower_case}.id }">EDIT</a></td>
				<td><a class="delete" href="${'$'}{ctx }/${entity?lower_case}_remove?${entity?lower_case}.id=${'$'}{${entity?lower_case}.id }">DELETE</a></td>
			</tr>
			</c:forEach>
		</table>
	</body>
</html>